package com.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dao.UserDao;
import com.domian.ReLiuCheng;
import com.domian.ReQingjia;
import com.pojo.Qingjia;
import com.pojo.Users;

@Service("userService")
public class UserService {
	@Resource(name="UserDao")
	private UserDao UserDao;

	public UserDao getUserDao() {
		return UserDao;
	}

	public void setUserDao(UserDao userDao) {
		UserDao = userDao;
	}

	public Users getUser(String name, String pwd) {
		// TODO Auto-generated method stub
		return UserDao.getUser(name, pwd);
	}

	public boolean addjiatiao(Integer uid, String info) {
		// TODO Auto-generated method stub
		return UserDao.addjiatiao(uid,info);
	}

//	public boolean addlc(Integer uid, String info) {
//		// TODO Auto-generated method stub
//		return UserDao.addlc(uid,info);
//	}

	public List<Qingjia> getJiaTiao(Integer uid) {
		// TODO Auto-generated method stub
		return UserDao.getJIaTiao(uid);
	}

	public List<ReLiuCheng> getLiuCheng(String id) {
		// TODO Auto-generated method stub
		return UserDao.getLiuCheng(id);
	}

	public List<ReQingjia> getPijiaByDY(int id) {
		// TODO Auto-generated method stub
		return UserDao.getPijiaByDY(id);
	}

	public String getJob(String id) {
		// TODO Auto-generated method stub
		return UserDao.getJob(id);
	}

	public boolean dopijiaByDY(String id, String qjid) {
		// TODO Auto-generated method stub
		return UserDao.dopijiaByDY(id,qjid);
	}

	public List<ReQingjia> getPijiaByZY(int id) {
		// TODO Auto-generated method stub
		return UserDao.getPijiaByZY(id);
	}

	public boolean dopijiaByZR(String id, String qjid) {
		// TODO Auto-generated method stub
		return UserDao.dopijiaByZR(id,qjid);
	}

	public boolean dopijiaByXZ(String id, String qjid) {
		// TODO Auto-generated method stub
		return UserDao.dopijiaByXZ(id,qjid);
	}

	public List<ReQingjia> getPijiaByXZ(int id) {
		// TODO Auto-generated method stub
		return UserDao.getPijiaByXZ(id);
	}

	public boolean dofouByDY(String id, String qjid) {
		// TODO Auto-generated method stub
		return UserDao.dofouByDY(id,qjid);
	}

	public boolean dofouByZR(String id, String qjid) {
		// TODO Auto-generated method stub
		return UserDao.dofouByZR(id,qjid);
	}

	public boolean dofouByXZ(String id, String qjid) {
		// TODO Auto-generated method stub
		return UserDao.dofouByXZ(id,qjid);
	}

	
	
	
}
